#ifndef _EXT_RATIONAL_H_
#define _EXT_RATIONAL_H_

struct ext_rational{
  int num;
  int denum;
  int p;
  ext_rational();
  ext_rational(int x);
  ext_rational(int nn, int dd, int pp);
  const ext_rational operator* (const ext_rational& other) const;
  const bool operator <(const ext_rational& other) const;
  const bool operator <=(const ext_rational& other) const;
  const bool operator ==(const ext_rational& other) const;
  const int intval() const;
};

#endif